package com.zretc.controller;

import com.zretc.entity.IndexModel;
import com.zretc.service.IndexShowService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * @author  吴凯
 * 首页渲染控制层
 */
@RestController
@RequestMapping("/front")
public class FrontIndexShowController {
    @Autowired
    private IndexShowService indexShowService;
    @RequestMapping(value = "/indexShow",method = RequestMethod.GET)
    public Map<String, List<IndexModel>> indexShow(){
        Map<String, List<IndexModel>> threeToOneShow = indexShowService.threeToOneShow();
        return threeToOneShow;
    }
}
